<style type="text/css">
    #ajaxModal{z-index: 799!important;}
</style>
<form class="form-horizontal form-validate" action="{php echo web_url('pocket/ToExamine/levelModel',['id'=>$id])}" method="post" enctype="multipart/form-data">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button data-dismiss="modal" class="close" type="button">×</button>
                <h4 class="modal-title">编辑等级</h4>
            </div>
            <div class="modal-body form-horizontal">
                <div class="form-group">
                    <div class="col-sm-2 control-label">等级名称</div>
                    <div class="col-sm-9">
                        <input class="form-control" placeholder="请输入等级名称" name="data[name]" value="{$info['name']}" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">活跃度</div>
                    <div class="col-sm-9">
                        <input type="number" class="form-control" placeholder="请输入活跃度" name="data[activenum]" value="{$info['activenum']}" />
                        <span class="help-block">活跃度设置为0则无法自动升级到此等级。</span>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">会员颜色</div>
                    <div class="col-sm-3">
                        <input type="color" name="data[color]" class="form-control" value="{$info['color']}" />
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button class="btn btn-primary" type="submit">提交</button>
                <button data-dismiss="modal" class="btn btn-default" type="button">取消</button>
            </div>
        </div>
    </div>
</form>
<script>

</script>